#include "gpu.h"

uint8_t gLCD_IFMODE = MIPI_VIDEO_4LANE;         //各种接口模式 
float        gLCD_PCLK = 60.0;  //单位MHz 精度0.1MHz，例LCD_PCLK = 145.3
unsigned int gLCD_XSIZE = 800;
unsigned int gLCD_YSIZE = 1280;
unsigned int gLCD_HBPD = 20;
unsigned int gLCD_HFPD = 20;
unsigned int gLCD_HSPW = 20;
unsigned int gLCD_VBPD = 20;
unsigned int gLCD_VFPD = 10;
unsigned int gLCD_VSPW = 10;
//RGBEdge_TypeDef     gLCD_PCLK_EDGE = FALLING_EDGE;	  //lcd锁存数据时的PCLK边沿	 
RGBEdge_TypeDef     gLCD_PCLK_EDGE = RISING_EDGE;	  //lcd锁存数据时的PCLK边沿	 
RGBPolarity_TypeDef gLCD_HS_POLARITY = 0;  //HSYNC脉冲极性			  
RGBPolarity_TypeDef gLCD_VS_POLARITY = 0;  //VSYNC脉冲极性			  
RGBPolarity_TypeDef gLCD_DE_POLARITY = 0;  //DE信号有效电平	

int PD_CommandMode(void) {
    return 0;
}

uint16_t SSD2828_baH_MsNs(uint16_t hs_mbps, uint8_t *ms, uint8_t *ns){

    return 0;
}

void GPU_RefDisp(void){

}

void GPU_SSD28_CS_A(uint8_t cs){
    /*if(cs){
        HAL_GPIO_WritePin(LCD_CS_GPIO_Port, LCD_CS_Pin, GPIO_PIN_SET);
    } else {
        HAL_GPIO_WritePin(LCD_CS_GPIO_Port, LCD_CS_Pin, GPIO_PIN_RESET);
    }*/
}

void GPU_SSD28_WrCmd(uint8_t cmd){

}

void GPU_SSD28_WrData(uint32_t data){

}

uint32_t GPU_SSD28_RdData(void){
    return 0;
}   

